package com.broada.apm.service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.broada.apm.ajax.ResourceResult;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;

@Path("apm/resource")
@Api(value="apm/resource" , description = "交易相关的APIs")
@Produces(MediaType.APPLICATION_JSON)
public interface ResourceService {

	/**
	 * 查询交易apdex
	 * 
	 * @param resId
	 * @return
	 */
	@GET
	@Path("/{resId}/apdex_t")
	@ApiOperation(value = "查询交易apdex")
	@Produces(MediaType.APPLICATION_JSON)
	public ResourceResult queryResourceApdex(@ApiParam(value = "关键交易id", required = true) @PathParam("resId") String resId);

}
